package com.springsecurity.demo.service.impl;


import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.springsecurity.demo.mapper.SysMenuMapper;
import com.springsecurity.demo.mapper.UsersMapper;
import com.springsecurity.demo.model.entity.Users;
import com.springsecurity.demo.service.IUsersService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author fredyc
 * @since 2024-09-14
 */
@Service
public class UsersServiceImpl extends ServiceImpl<UsersMapper, Users> implements IUsersService {

    @Resource
    private SysMenuMapper sysMenuMapper;

    @Override
    public List<Users> getUserInfo(String username) {
        Map<String, Object> map = new HashMap<>();
        map.put("username", username);
        List<Users> users = super.baseMapper.selectByMap(map);
        return users;
    }
}
